<?php
    include('./request.php');
    include('./config.php');
    $goods_id = $result->goods_id;
    try{
        $pdo = new PDO($dsn,$user,$pass);
        $sql = "delete from goods where goods_id=".$goods_id;
        $res = $pdo->prepare($sql);
        $res->execute();
        if($res){
            echo "ok";
        }else{
            echo "error";
        }
    }catch(PDOException $e){
        echo "error1";
    }
?>